package com.easy.order.service;

import com.easy.bean.Products;
import com.easy.bean.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "easy-goods")
@Service
public interface GoodsFeignService {
    @RequestMapping(path = "goods/feign/{id}", method = RequestMethod.GET)
    public Products getProducts(@PathVariable("id") Integer id);

}
